package com.mdd.front.validate;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;

/**
 * 课程目录参数
 * @author panweiliang
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class StudyCourseCatalogueScheduleParam extends BaseParam {

    @NotNull(message = "courseId参数缺失", groups = {create.class})
    @DecimalMin(value = "0", message = "courseId参数值不能少于0", groups = {create.class})
    private Integer courseId;

    @NotNull(message = "catalogueId参数缺失", groups = {create.class})
    @DecimalMin(value = "0", message = "catalogueId参数值不能少于0", groups = {create.class})
    private Integer catalogueId;


    private Long duration;

//    @NotNull(message = "userId参数缺失", groups = {create.class})
//    @DecimalMin(value = "0", message = "userId参数值不能少于0", groups = {create.class})
    private Integer userId;

}
